﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmArea.aspx.cs" Inherits="SISLOG.Web.frmArea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Buscar:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtBuscarArea" runat="server"></asp:TextBox>
    <asp:Button ID="btnBuscarArea" runat="server" Text="Buscar" />
    <br />
    <br />
    <asp:Button ID="btnNuevo" runat="server" Text="Nuevo" 
        onclick="btnNuevo_Click2" />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSourceArea">
        <Columns>
            <asp:BoundField DataField="IdArea" HeaderText="IdArea" 
                SortExpression="IdArea" />
            <asp:BoundField DataField="NombreArea" HeaderText="NombreArea" 
                SortExpression="NombreArea" />
            <asp:TemplateField HeaderText="Acciones">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton2" runat="server" 
                        PostBackUrl='<%# Eval("IdArea","frmRegistrarArea.aspx?acc=editar&idArea={0}") %>'>Editar</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
       
    </asp:GridView>
    <br />
    <asp:ObjectDataSource ID="ObjectDataSourceArea" runat="server" 
        onobjectcreating="ObjectDataSourceArea_ObjectCreating" 
        SelectMethod="GetAllFromArea" TypeName="SISLOG.BusinessLogic.AreaBL">
    </asp:ObjectDataSource>
</asp:Content>
